import request from '@/utils/request'

export async function unitViewTreePageQuery(unitViewTree, paginator) {
  return await request({
    url: '/bicAdmin/unitViewTree/query',
    method: 'post',
    data: {
      'unitViewTree': unitViewTree,
      'paginator': paginator
    }
  })
}

export async function unitViewTreeSave(unitViewTree) {
  return await request({
    url: '/bicAdmin/unitViewTree/save',
    method: 'post',
    data: unitViewTree
  })
}

export async function remoteValidateUnitViewTreeUnique(systemUuid, useCaseUuid) {
  return await request({
    url: '/bicAdmin/unitViewTree/validateUnique/' + systemUuid + '/' + useCaseUuid,
    method: 'get',
  })
}
